//
//  BBEShowFlowLayout.swift
//  PictureShow
//
//  Created by apple on 16/4/27.
//  Copyright © 2016年 apple. All rights reserved.
//

import UIKit

class BBEShowFlowLayout: UICollectionViewFlowLayout {

    override func prepareLayout() {
        
        itemSize = UIScreen.mainScreen().bounds.size
        
        scrollDirection = .Horizontal
        
        minimumInteritemSpacing = 0
        minimumLineSpacing = 0
        
        collectionView?.showsHorizontalScrollIndicator = false
        collectionView?.showsVerticalScrollIndicator = false
        collectionView?.pagingEnabled = true
    }
}
